package com.icinfo.cloud.provider.punish.csreason.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.persistence.Column;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * @Author yehuafei
 * @date 2022/10/26 14:32
 */
@Data
public class CaseReasonAddParam implements Serializable {
    /**
     * 主键id
     */
    private String id;

    /**
     * 案由名称
     */
    @NotBlank(message = "案由名称不能为空")
    @Length(max = 200)
    private String name;

    /**
     * 所属类别编码（字典表code）
     */
    @NotBlank(message = "所属类别编码不能为空")
    private String typeCode;

    /**
     * 违则
     */
    @NotEmpty(message = "违则不能为空")
    private List<String> violationList;

    /**
     * 处罚事项 [['父id','子id'],['父id','子id']]
     */
    private List<List<String>> penaltiesList;

    /**
     * 案由描述
     */
    @NotBlank(message = "案由描述不能为空")
    @Length(max = 200)
    private String remark;

}
